package com.twu.biblioteca.modal;

public class Book {
    private final String author;
    private final int publishYear;
    private final String name;
    private final int bookID;
    private Boolean available;

    public Book(int bookID, String name, String author, int publishYear) {
        this.bookID = bookID;
        this.name = name;
        this.author = author;
        this.publishYear = publishYear;
        this.available = true;
    }

    public void changeAvailableStatus() {
        this.available = !this.available;
    }

    public Boolean getAvailable() {
        return available;
    }

    public int getBookID() {
        return bookID;
    }

    public String getAuthor() {
        return author;
    }

    public int getPublishYear() {
        return publishYear;
    }

    public String getName() {
        return name;
    }
}
